using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;
namespace Dew.Examples;
{
private void Example()
{
Vector vec1 =
new Vector(0);
// first, generate 1000 randomly Rayleigh distributed
// numbers with b=1.3
vec1.Size(1000,
false);
StatRandom.RandomRayleigh(1.3,vec1,-1);
// Now extract the r and it's 95% confidence intervals.
double resb;
double[] CIb =
new double[2];
Statistics.RayleighFit(vec1,
out resb,
out CIb,0.05);
}
}